<html>
<head>
<?php 
		require_once '../Pages/imports.php';
	?>
<script src="../Scripts/jquery-te-1.4.0.min.js"></script>
<link href="../Styles/jquery-te-1.4.0.css" media="screen" type="text/css" rel="stylesheet"/>
<script>
$(document).ready(function(){
	$("textarea").jqte();
});
</script>
</head>
<body>
	<?php 
		require_once '../Pages/header.php';
	?>
	<div id="content">
		<h2 id="contentTitle">Ajouter une news</h2>
		<a href="modifyNews.php">Modifier news</a><br/>
	<form action="../Scripts/addNews.php" method="post">
		<table>
			<tr>
				<td><label>Title</label></td><td><input type="text" id="title" name="title" size="100"/></td>
			</tr>
			<tr>
				<td><label>Summary</label></td><td><textarea id="summary" name="summary" cols="74" rows="10"></textarea></td>
			</tr>
			<tr>
				<td><label>Content</label></td><td><textarea id="newsContent" name="newsContent" cols="74" rows="20"></textarea></td>
			</tr>
			<tr>
				<td><label>Image URL</label></td><td><input type="text" id="image" name="image" size="100"/></td>
			</tr>
			<tr>
				<td><label>Category</label></td><td>
									<select name="category" id="category">
										<option value="video games">video games</option>
										<option value="films">films</option>
										<option value="astuces">astuces</option>
										<option value="findings">findings</option>
									</select>
									
									</td>
			</tr>
			<tr>
				<td><label>Password</label></td><td><input type="password" id="password" name="password"/></td>
			</tr>
			<tr align="right">
				<td colspan="2"><input type="submit" value="Ajouter news"/></td>
			</tr>
		</table>
	</form>
	
	<br/><br/>
	</div>
	
	<?php 
		require_once '../Pages/footer.php';
	?>
</body>
</html>